package com.wechat.weather.controller;

import com.wechat.weather.service.MessageService;
import com.wechat.weather.util.WxUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: xiaojiahui@dtxytech.com
 * @since: 2024-12-09  15:03
 * @Description: TODO
 */
@RestController
@RequestMapping("/weather")
public class weatherController {

    @Autowired
    private MessageService messageService;

    @GetMapping("/getWeather")
    public void getWeather() {
        messageService.sendMessage(WxUtil.loveDate);
    }
}
